Xen: use proper device ID to search VT-d unit for ARI and SR-IOV device
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 19 Mar 2009 10:20:11 +0000 (10:20 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 19 Mar 2009 10:20:11 +0000 (10:20 +0000)
commit3fdb2ba3063c84bf1adfd80a068d89f27bbaaf86
tree8ff1289f08ef9b6cc968e44560d613e53ef3c972
parent8959f0c05a7b49783d64df47303ad53361a9a3d6
Xen: use proper device ID to search VT-d unit for ARI and SR-IOV device

PCIe Alternative Routing-ID Interpretation (ARI) ECN defines the Extended
Function -- a function whose function number is greater than 7 within an
ARI Device. Intel VT-d spec 1.2 section 8.3.2 specifies that the Extended
Function is under the scope of the same remapping unit as the traditional
function. The hypervisor needs to know if a function is Extended
Function so it can find proper DMAR for it.

And section 8.3.3 specifies that the SR-IOV Virtual Function is under the
scope of the same remapping unit as the Physical Function. The hypervisor
also needs to know if a function is the Virtual Function and which
Physical Function it's associated with for same reason.

Signed-off-by: Yu Zhao <yu.zhao@intel.com>
xen/arch/ia64/xen/hypercall.c
xen/arch/x86/physdev.c
xen/drivers/passthrough/pci.c
xen/drivers/passthrough/vtd/dmar.c
xen/drivers/passthrough/vtd/dmar.h
xen/drivers/passthrough/vtd/intremap.c
xen/drivers/passthrough/vtd/iommu.c
xen/include/public/physdev.h
xen/include/xen/pci.h